-- GENERATED SPELL FOR [Brood of Neltharaku] --


function spell0_22332(pUnit, Event) --@Arcane Breath Chain,Self--
pUnit:FullCastSpellOnTarget(38906,pUnit)
pUnit:RegisterEvent('Sorts_22332', 0, 1)
end

function Sorts_22332(pUnit, Event)
local choix_sorts_22332 = math.random(0, 0)
if choix_sorts_22332 == 0 then
pUnit:RegisterEvent('spell0_22332', 1, 1)
end
end

function mob22332_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22332', math.random(1500, 3000), 1)
end

function mob22332_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22332_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22332_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22332, 1, 'mob22332_Action')
RegisterUnitEvent(22332, 2, 'mob22332_Leave')
RegisterUnitEvent(22332, 3, 'mob22332_Kill')
RegisterUnitEvent(22332, 4, 'mob22332_Die')
